import * as React from 'react';
import { Layout } from 'antd';
import CSider from './sider';
import style from './index.module.less';

const { Sider, Header, Content } = Layout;

interface Props {
    children: any
}

function CoreLayout(props: Props) {
    return (
        <Layout className={style.height}>
            <Sider>
                <CSider />
            </Sider>
            <Layout>
                <Header />
                <Content>
                    {
                        props.children
                    }
                </Content>
            </Layout>
        </Layout>
    )
}

export default CoreLayout;